package com.jgp.workflow.service;

import com.jgp.sys.ui.Pager;
import com.jgp.workflow.exception.WorkflowException;
import com.jgp.workflow.pojo.ViewProcessModel;
import org.activiti.engine.repository.Model;
import org.apache.batik.transcoder.TranscoderException;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2018/12/22
 */
public interface EditorService {
    Map queryModelEditor(String modelId);
    Model queryModelById(String modelId);
    void saveModelEditor(String modelId, String json_xml, String svg_xml, String modelName, String description) throws IOException, TranscoderException, WorkflowException;
    void saveModel(String modelId, String modelName, String systemId, String category, String description) throws WorkflowException;
    List<ViewProcessModel> queryModels(Pager pager) throws WorkflowException;
    void removeModel(String modelId);
}
